import * as req from '@/request';

export async function list(
  params: { [key: string]: any },
  sorter?: { [key: string]: any },
  filter?: { [key: string]: any },
) {
  return req.postForm<API.OrderList>('/order/list', params, sorter, filter);
}

export async function get(id: string) {
  return req.get<API.OrderForm>(`/order/get/${id}`);
}
